/*
 * A simple die implementation. Terminate the script and show an error message.
*/

"use strict";

export function die(msg) {
	const scriptName = process.argv[1].split('/').at(-1);
	console.error(`${scriptName}: ${msg}`);
	process.exit(1);
}
